home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / room-maker.swf / scripts / frame_18 / DoAction.as
Text File  |  2008-03-17  |  1KB  |  23 lines

  1. stop();
  2. _root.frame._visible = false;
  3. _root.room._x = _root.frame._x;
  4. _root.room._y = _root.frame._y;
  5. Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable)
  6. {
  7.    getURL("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(\'" + url + "\',\'" + winName + "\',\'" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top=\'+((screen.height/2)-(" + h / 2 + "))+\',left=\'+((screen.width/2)-(" + w / 2 + "))+\'" + "\')}else{myWin.focus();};void(0);","");
  8. };
  9. print_btn.onRelease = function()
  10. {
  11.    trace("Print Screen here");
  12.    getURL("print:","_level" add _root.room);
  13. };
  14. playAgain_btn.onRelease = function()
  15. {
  16.    _root.gotoAndStop("intro");
  17.    roomStuffDrag = true;
  18. };
  19. email_btn.onRelease = function()
  20. {
  21.    getUrl("TS_email.html", "_blank");
  22. };
  23.